
package com.xxl.job.core.commons.annotation;


import com.xxl.job.core.commons.annotation.impl.SpaceCheckImpl;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @Description : 名字空格校验实现
 * @Author : wangqiangqiang
 * @Date : 11:35 2019/4/27
 * @Email : wangqiangqiang@cetcbigdata.com
 */
@Constraint(validatedBy = SpaceCheckImpl.class)
@Target({METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE})
@Retention(RUNTIME)
public @interface SpaceCheck {

    String message() default "字符串不应该包含空格";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
